package com.service;

import com.mapper.UserMapper;
import com.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {

    @Resource
    private UserMapper userMapper;

    public User findUserByName(String name){
        User user = new User();
        user.setName(name);
        return this.userMapper.selectOne(user);
    }
}
